package com.neutech.service.impl;
import com.neutech.mapper.CaseMapper;
import com.neutech.service.CaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public  class CaseServiceImpl implements CaseService {
    @Autowired(required = false)
    CaseMapper caseMapper;
    @Override
    public List<Map<String, Object>> queryCase() {
        List<Map<String, Object>> list = caseMapper.queryCaseList(0);
        return list;
    }
    @Override
    public void insertCase(Map map){
        Integer a = caseMapper.addCase(map);

    }

    @Override
    public void updataCase(Map map) {

    }

    @Override
    public void deleteCase(Map map) {
       // disposalMapper.delDisposalById(map);
        Integer uid= Integer.valueOf(map.get("uid").toString());
        caseMapper.delCaseById(uid);
    }

    @Override
    public void delCaseByIdBiz(Integer uid){
        caseMapper.delCaseById(uid);
    }
//    @Override
//    public void updataCase(Map map){
//        dcaseMapper.updataCaseById(map);
//    }
//    @Override
//    public void deleteCase(Map map){
//       // disposalMapper.delDisposalById(map);
//        Integer disid= Integer.valueOf(map.get("disid").toString());
//        caseMapper.delCaseById(disid);
//}
}
